package com.itsc.service.inter;

import java.util.List;

import com.itsc.entities.Permission;
import com.itsc.entities.User;

public interface IPermissionService {

	public List<Permission> selectAll();
	
	
	public List<Permission> selectParentidNull();
	
	/**
	 * 增加
	 */
	public void save(Permission permission);
	
	/**
	 * 删除
	 */
	public void delete(Permission permission);
	
	/**
	 * 修改
	 * @param user
	 */
	public void update(Permission permission);
	
	/**
	 * 根据id查找
	 * @param id
	 * @return
	 */
	public Permission selectById(Integer id);
	
	
	/**
	 * 根据名称查找
	 * @param name
	 * @return
	 */
	public boolean selectByString(String name);
}
